<?php    
header('Content-type: application/xls');
header("Content-Disposition:attachment;filename=bcxls.xls");
?>

<div class="index">
	

	<?php echo $ctable->header_tonghop(0,1);?>
	<?php 
	$sodong=count($phieus);
	for($i=0;$i<$sodong;$i++){
			echo '<tr><td colspan="2" align="left"><b>'.$tenphieu [$i].'</b></td></tr>';
			echo  $ctable->tonghop($phieus [$i],$ketqua [$i]);
	}
	?>

	</table>



</div>

